package com.shuimuzhen.SecondhandMotorManagementSystem.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SecondHandMotorcycle {

    //primary key
    /**废案:
     *user_id+user_sell_times
     *原因:
     *维护困难
     * */
    private long id;


    //foreign key
    private long motorcycleId;
    private long holderId;
//    private long buyerId;//这个去交易记录里面看,应该是交易记录维护
//    //log data
    private Date createTime;
    private List<Map<Date,Long>> soldTimeAndBuyerId;
    //enhanced data

    private boolean forSale;
    private double sellingPrice;
    private int mileage; // 行驶里程
    private List<String> refits;

}
